import request from '@/utils/request'




// 查询辨识方案列表
export function listResc(query) {
  return request({
    url: '/app/urgentrescueprotocol/getList',
    method: 'get',
    params: query
  })
}

 // 新增
 export function addResc(data) {
    return request({    
      url: '/app/urgentrescueprotocol/edit',   
      method: 'post', 
      data: data
    })
  }
  
  // 修改
  export function updateResc(data) {
    return request({
      url: '/app/urgentrescueprotocol/edit',
      method: 'post', 
      data: data
    })
  }  
  // 删除
  export function delResc(data) {
    return request({
      url: '/app/urgentrescueprotocol/delete',  
      method: 'POST',
      data:data
    })  
  }
 
  // 物资管理


  // 查询物资管理
export function listSupplies(query) {
    return request({
      url: '/app/emergencyMatter/getList',
      method: 'post',
      data: query
    })
  }
  
   // 新增
   export function addSupplies(data) {
      return request({    
        url: '/app/emergencyMatter/edit',   
        method: 'post', 
        data: data
      })
    }
    
    // 修改
    export function updateSupplies(data) {
      return request({
        url: '/app/emergencyMatter/edit',
        method: 'post', 
        data: data
      })
    }  
    // 删除
    export function delSupplies(data) {
      return request({
        url: '/app/emergencyMatter/delete',  
        method: 'POST',
        data:data
      })  
    }
  
